package com.xiedafeng.www.view;

import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.scene.text.Text;
import javafx.stage.Stage;

public class TipView {
    Stage stage=new Stage();
    public void showTip(String tip){
        Text tips=new Text();
        tips.setText(tip);
        GridPane gridPane=new GridPane();
        gridPane.add(tips,0,0);
        gridPane.setAlignment(Pos.CENTER);
        Scene scene=new Scene(gridPane);
        stage.setScene(scene);
        stage.show();
    }
}
